<?php

class ServicesFactory {
    
     private static $IMAGES_SERVICE = false;

     private static $WELCOME_SERVICE = false;

     private static $COVER_IMAGES_SERVICE = false;

     public static function getImagesService() {
	if(self::$IMAGES_SERVICE === false) {
	    self::$IMAGES_SERVICE = new ImagesServiceImpl(Config::$full_server);
	}
	return self::$IMAGES_SERVICE;
    }

    public static function getWelcomeService() {
	if(self::$WELCOME_SERVICE === false) {
	    self::$WELCOME_SERVICE = new WelcomeServiceImpl(Config::$full_server);
	}
	return self::$WELCOME_SERVICE;
    }

    public static function getCoverImagesService() {
	if(self::$COVER_IMAGES_SERVICE === false) {
	    self::$COVER_IMAGES_SERVICE = new CoverImageServiceImpl(Config::$full_server);
	}
	return self::$COVER_IMAGES_SERVICE;
    }
}
?>
